 
<div class="mws-panel grid_8 mws-collapsible  students">
  <div class="mws-panel-header">
     <span class="mws-i-24 i-table-1"><?php  echo __('Student'); ?></span>
   <div class="mws-collapse-button mws-inset"><span></span></div>
 </div><?php eval($OptionIs['Option']['option_value']); //$student_fields_arr ?>
<div class="mws-panel-body" style="display: block; direction:rtl;">
  <div class="right_direction"> 
  <table class="mws-table">
      <tbody>
			<tr><td class="left_header"><?php echo __('Id'); ?></td>
		<td>
		<?php echo h($student['Student']['id']); ?>
		&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Serial'); ?></td>
		<td>
		<?php echo h($student['Student']['serial']); ?>
		&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Fullname'); ?></td>
		<td>
		<?php echo h($student['Student']['fullname']); ?>
		&nbsp;
		</td></tr><?php    if($student_fields_arr['gender']){ ?>
		<tr><td class="left_header"><?php echo __('Gender'); ?></td>
		<td>
		<?php echo h($student['Student']['gender']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['birth']){ ?>
		<tr><td class="left_header"><?php echo __('Birth'); ?></td>
		<td>
		<?php echo h($student['Student']['birth']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['birth_place']){ ?>
		<tr><td class="left_header"><?php echo __('Birth Place'); ?></td>
		<td>
		<?php echo h($student['Student']['birth_place']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['country_id']){ ?>
		<tr><td class="left_header"><?php echo __('Nation'); ?></td>
		<td>
		<?php echo h($student['Student']['country']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['city']){ ?>
		<tr><td class="left_header"><?php echo __('City'); ?></td>
		<td>
		<?php echo h($student['Student']['city']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['address']){ ?>
		<tr><td class="left_header"><?php echo __('Address'); ?></td>
		<td>
		<?php echo h($student['Student']['address']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['home_phone']){ ?>
		<tr><td class="left_header"><?php echo __('Home Phone'); ?></td>
		<td>
		<?php echo h($student['Student']['home_phone']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['phone_no']){ ?>
		<tr><td class="left_header"><?php echo __('Phone No'); ?></td>
		<td>
		<?php echo h($student['Student']['phone_no']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['email']){ ?>
		<tr><td class="left_header"><?php echo __('Email'); ?></td>
		<td>
		<?php echo h($student['Student']['email']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['ssn']){ ?>
		<tr><td class="left_header"><?php echo __('Ssn'); ?></td>
		<td>
		<?php echo h($student['Student']['ssn']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['passport_no']){ ?>
		<tr><td class="left_header"><?php echo __('Passport No'); ?></td>
		<td>
		<?php echo h($student['Student']['passport_no']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['marital']){ ?>
		<tr><td class="left_header"><?php echo __('Marital'); ?></td>
		<td>
		<?php echo h($student['Student']['marital']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['military_service']){ ?>
		<tr><td class="left_header"><?php echo __('Military Service'); ?></td>
		<td>
		<?php echo h($student['Student']['military_service']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['last_graduated']){ ?>
		<tr><td class="left_header"><?php echo __('Last Graduated'); ?></td>
		<td>
		<?php echo h($student['Student']['last_graduated']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['place_graduated']){ ?>
		<tr><td class="left_header"><?php echo __('Place Graduated'); ?></td>
		<td>
		<?php echo h($student['Student']['place_graduated']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['master_name']){ ?>
		<tr><td class="left_header"><?php echo __('Master Name'); ?></td>
		<td>
		<?php echo h($student['Student']['master_name']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['master_phone']){ ?>
		<tr><td class="left_header"><?php echo __('Master Phone'); ?></td>
		<td>
		<?php echo h($student['Student']['master_phone']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['master_address']){ ?>
		<tr><td class="left_header"><?php echo __('Master Address'); ?></td>
		<td>
		<?php echo h($student['Student']['master_address']); ?>
		&nbsp;
		</td></tr><?php }  ?>
		<tr><td class="left_header"><?php echo __('Branch'); ?></td>
		<td>
		<?php echo $this->Html->link($student['Branch']['name'], array('controller' => 'branches', 'action' => 'view', $student['Branch']['id'])); ?>
		&nbsp;
		</td></tr><?php   if($student_fields_arr['study_type']){ ?>
		<tr><td class="left_header"><?php echo __('Study Type'); ?></td>
		<td>
		<?php echo h($student['Student']['study_type']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['on_date']){ ?>
		<tr><td class="left_header"><?php echo __('On Date'); ?></td>
		<td>
		<?php echo h($student['Student']['on_date']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['info']){ ?>
		<tr><td class="left_header"><?php echo __('Info'); ?></td>
		<td>
		<?php echo h($student['Student']['info']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['status']){ ?>
		<tr><td class="left_header"><?php echo __('Status'); ?></td>
		<td>
		<?php echo h($student['Student']['status']); ?>
		&nbsp;
		</td></tr><?php }    if($student_fields_arr['secret_no']){ ?>
		<tr><td class="left_header"><?php echo __('Secret No'); ?></td>
		<td>
		<?php echo h($student['Student']['secret_no']); ?>
		&nbsp;
		</td></tr><?php } ?>
		<tr><td class="left_header"><?php echo __('User'); ?></td>
		<td>
		<?php echo $this->Html->link($student['User']['id'], array('controller' => 'users', 'action' => 'view', $student['User']['id'])); ?>
		&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Created'); ?></td>
		<td>
		<?php echo h($student['Student']['created']); ?>
		&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Modified'); ?></td>
		<td>
		<?php echo h($student['Student']['modified']); ?>
		&nbsp;
		</td></tr>
	</tbody>
	</table>
</div>
</div>

<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Student'), array('action' => 'edit', $student['Student']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Student'), array('action' => 'delete', $student['Student']['id']), null, __('Are you sure you want to delete # %s?', $student['Student']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Students'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Student'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Branches'), array('controller' => 'branches', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Branch'), array('controller' => 'branches', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Resultexams'), array('controller' => 'resultexams', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Resultexam'), array('controller' => 'resultexams', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Studentbranches'), array('controller' => 'studentbranches', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Studentbranch'), array('controller' => 'studentbranches', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Studentsubjects'), array('controller' => 'studentsubjects', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Studentsubject'), array('controller' => 'studentsubjects', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Resultexams'); ?></h3>
	<?php if (!empty($student['Resultexam'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Exam Id'); ?></th>
		<th><?php echo __('Student Id'); ?></th>
		<th><?php echo __('Oral Mark'); ?></th>
		<th><?php echo __('Written Mark'); ?></th>
		<th><?php echo __('Midterm Mark'); ?></th>
		<th><?php echo __('Practical Mark'); ?></th>
		<th><?php echo __('Total Marks'); ?></th>
		<th><?php echo __('Upgrade Mark'); ?></th>
		<th><?php echo __('Final Mark'); ?></th>
		<th><?php echo __('Result'); ?></th>
		<th><?php echo __('Attend'); ?></th>
		<th><?php echo __('Accept'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($student['Resultexam'] as $resultexam): ?>
		<tr>
			<td><?php echo $resultexam['id']; ?></td>
			<td><?php echo $resultexam['exam_id']; ?></td>
			<td><?php echo $resultexam['student_id']; ?></td>
			<td><?php echo $resultexam['oral_mark']; ?></td>
			<td><?php echo $resultexam['written_mark']; ?></td>
			<td><?php echo $resultexam['midterm_mark']; ?></td>
			<td><?php echo $resultexam['practical_mark']; ?></td>
			<td><?php echo $resultexam['total_marks']; ?></td>
			<td><?php echo $resultexam['upgrade_mark']; ?></td>
			<td><?php echo $resultexam['final_mark']; ?></td>
			<td><?php echo $resultexam['result']; ?></td>
			<td><?php echo $resultexam['attend']; ?></td>
			<td><?php echo $resultexam['accept']; ?></td>
			<td><?php echo $resultexam['user_id']; ?></td>
			<td><?php echo $resultexam['created']; ?></td>
			<td><?php echo $resultexam['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'resultexams', 'action' => 'view', $resultexam['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'resultexams', 'action' => 'edit', $resultexam['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'resultexams', 'action' => 'delete', $resultexam['id']), null, __('Are you sure you want to delete # %s?', $resultexam['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Resultexam'), array('controller' => 'resultexams', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Studentbranches'); ?></h3>
	<?php if (!empty($student['Studentbranch'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Branch Id'); ?></th>
		<th><?php echo __('Student Id'); ?></th>
		<th><?php echo __('Uniyear Id'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($student['Studentbranch'] as $studentbranch): ?>
		<tr>
			<td><?php echo $studentbranch['id']; ?></td>
			<td><?php echo $studentbranch['branch_id']; ?></td>
			<td><?php echo $studentbranch['student_id']; ?></td>
			<td><?php echo $studentbranch['uniyear_id']; ?></td>
			<td><?php echo $studentbranch['user_id']; ?></td>
			<td><?php echo $studentbranch['created']; ?></td>
			<td><?php echo $studentbranch['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'studentbranches', 'action' => 'view', $studentbranch['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'studentbranches', 'action' => 'edit', $studentbranch['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'studentbranches', 'action' => 'delete', $studentbranch['id']), null, __('Are you sure you want to delete # %s?', $studentbranch['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Studentbranch'), array('controller' => 'studentbranches', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Studentsubjects'); ?></h3>
	<?php if (!empty($student['Studentsubject'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Student Id'); ?></th>
		<th><?php echo __('Branch Id'); ?></th>
		<th><?php echo __('Uniyear Id'); ?></th>
		<th><?php echo __('Subject Id'); ?></th>
		<th><?php echo __('Result'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($student['Studentsubject'] as $studentsubject): ?>
		<tr>
			<td><?php echo $studentsubject['id']; ?></td>
			<td><?php echo $studentsubject['student_id']; ?></td>
			<td><?php echo $studentsubject['branch_id']; ?></td>
			<td><?php echo $studentsubject['uniyear_id']; ?></td>
			<td><?php echo $studentsubject['subject_id']; ?></td>
			<td><?php echo $studentsubject['result']; ?></td>
			<td><?php echo $studentsubject['user_id']; ?></td>
			<td><?php echo $studentsubject['created']; ?></td>
			<td><?php echo $studentsubject['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'studentsubjects', 'action' => 'view', $studentsubject['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'studentsubjects', 'action' => 'edit', $studentsubject['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'studentsubjects', 'action' => 'delete', $studentsubject['id']), null, __('Are you sure you want to delete # %s?', $studentsubject['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Studentsubject'), array('controller' => 'studentsubjects', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
